package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("lm_electronic_media")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ElectronicMediaModel {
    @TableId(type = IdType.AUTO)
    private Integer id;
    //@ExcelProperty(index = 0)
    private Integer number;  //序号
    private Integer mediaType;//社交媒体类型
    private String mediaNumber;//社交媒体账号
    private Integer illegal;//是否存在违规行为1存在0不存在
    private Integer personId;//所属人ID，person表
    private Timestamp createTime;
    private Timestamp updateTime;

    @TableField(exist = false)
    private String personName;// 所属人名字字段
    @TableField(exist = false)
    private String mediaTypeText;//社交媒体类型字段
    @TableField(exist = false)
    private String illegalText;//违规行为字段字段

}
